<ul class="pagination">
        {% if page > 1 %}
        <li class="page-item">
            <a class="page-link" href="?page={{ page|add:"-1" }}&search={{ request.GET.search }}">上一页</a>
        </li>
        {% else %}
        <li class="page-item disabled">
            <a class="page-link">上一页</a>
        </li>
        {% endif %}

        {{ page_str_list|safe }}

        {% if page < total_page_count %}
        <li class="page-item">
            <a class="page-link" href="?page={{ page|add:"1" }}&search={{ request.GET.search }}">下一页</a>
        </li>
        {% else %}
        <li class="page-item disabled">
            <a class="page-link">下一页</a>
        </li>
        {% endif %}

<li class="page-item">
    <form method="GET" class="form-inline" style="display: inline;">
        <input type="hidden" name="search" value="{{ request.GET.search }}">
        <label for="pageInput" class="sr-only">跳转到页码</label>
        <input
            type="number"
            id="pageInput"
            name="page"
            min="1"
            max="{{ total_page_count }}"
            value="{{ page }}"
            style="width:60px;"
            class="form-control"
        >
        <button type="submit" class="btn btn-primary btn-sm">跳转</button>
    </form>
</li>


    </ul>